package com.example.hello.RSS.tests;

import com.example.hello.RSS.model.Feed;
import com.example.hello.RSS.model.FeedMessage;
import com.example.hello.RSS.read.RSSFeedParser;

public class ReadTest {

    public static void main(String[] args) {
        RSSFeedParser parser = new RSSFeedParser("http://www.vogella.com/article.rss");
        Feed feed = parser.readFeed();
        System.out.println(feed);
        for (FeedMessage message : feed.getMessages()) {
            System.out.println(message);
        }

    }

}